package com.example.demo.exception

/**
 * 错误码枚举
 */
enum class ErrorCode(var code: Int, var message: String) {
    SUCCESS(0, "成功"),
    NOT_FOUND(40004, "未找到"),
    NOT_LOGIN(40002, "未登录"),
    UNAUTHORIZED(40001, "未授权"),
    INTERNAL_SERVER_ERROR(50001, "服务器内部错误"),
    OPERATION_FAILED(50000, "操作失败");
}